<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
		<style type="text/css">
			div {
				width: 100px;
				height: 50px;
				background-color: pink;
			}
		</style>
	</head>

	<body>
		<!-- <div class="cls1 cls2" id="dv" title="我是一个div" style="width:100px;height: 50px;background-color:pink;"></div>-->
		<div class="cls1 cls2" id="dv" title="我是一个div"></div>
	</body>
	<script type="text/javascript">
		console.log($("#dv").prop("style"));
		console.log($("#dv").css("width"));
	</script>

</html>